import request from '@/utils/request'

//  查询活动
export function getActivityList(params) {
  return request({
    url: '/activity/findList',
    method: 'get',
    params: params,
  })
}

//   新增活动
export function getActivityAdd(params) {
  return request({
    url: '/activity/add',
    method: 'post',
    data: params,
  })
}

//   修改活动
export function getActivityUpdate(params) {
  return request({
    url: '/activity/update',
    method: 'post',
    data: params,
  })
}

// 删除活动
export function getDelete(params) {
  return request({
    url: '/activity/delete',
    method: 'post',
    data: params,
  })
}

// 参与人员
export function getUserInfo(params) {
  return request({
    url: '/activity/getUserInfo',
    method: 'get',
    params: params,
  })
}
